//
//  CZSettingItem.h
//  0908网易彩票01
//
//  Created by Apple on 15/9/8.
//  Copyright (c) 2015年 itcast. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^CZSettingItemBlock) ();

/**
 *  模型
 */
@interface ZDSettingItem : NSObject

@property (nonatomic, copy) NSString *icon;

@property (nonatomic, copy) NSString *title;

@property (nonatomic, assign) Class itemClass;

@property (nonatomic, copy) NSString *detailText;

//@property (nonatomic, copy) NSString *timeLabel;

//定义一个block属性 ———— block使用copy修饰
#warning 注意 block使用copy修饰
@property (nonatomic, copy) CZSettingItemBlock itemOperationBlock;


+ (instancetype)settingItemWithIcon:(NSString *)icon andTitle:(NSString *)title;


+ (instancetype)settingItemWithIcon:(NSString *)icon andTitle:(NSString *)title andClass:(Class)itemClass;

+ (instancetype)settingItemWithTitle:(NSString *)title andClass:(Class)itemClass;


+ (instancetype)settingItemWithTitle:(NSString *)title andDetailText:(NSString *)detailText;


//+ (instancetype)settingItemWithTitle:(NSString *)title andTimeLabel:(NSString *)timeLabel;


+ (instancetype)settingItemWithTitle:(NSString *)title;

@end
